package com.wanbatv.wanba.ahitv.api;

/**
 * Created by Forcs on 15/7/1.
 *
 * 记录API的ip和端口信息
 */
public class ApiHost {

    /**
     * API的ip
     */
    public String ip;
    /**
     * API的端口
     */
    public int port;

    public ApiHost(String ip, int port) {
        this.ip = ip;
        this.port = port;
    }

    /**
     * 以[ip]:[port]的格式返回API地址的完整字符串，例如127.0.0.1:8000
     * @return API地址的完整字符串
     */
    @Override
    public String toString() {
        return ip + ":" + port;
    }
}
